package dadonas.xmlpersistence.test;
import dadonas.xmlpersistence.XMLPersistenceWriter;



public class Main {

	public static void main(String[] args) {
		
		ChildXML child1 = new ChildXML();
		child1.setName("Child 1");
		
		ChildXML child2 = new ChildXML();
		child2.setName("Child 2");
		
		XMLTest test = new XMLTest();
		test.setId(10);
		test.setDefaultTagName("Test Default Tag Name");
		test.setStringTest("String Test");
		
		//test.setChildXML(child1);
		//test.addChild(child1);
		//test.addChild(child2);
		
		XMLPersistenceWriter writer = new XMLPersistenceWriter("/xml", "xmltest.xml",true);
		
		writer.addObject(test);
		writer.persist();
		
	}

}
